package cn.wolfcode.postbar.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@ToString
@TableName("postbar")
public class Postbar {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;
    private String name;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date time;
}